home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 1999 April / Software of the Month - Ultimate Collection Shareware 260.iso / pc / Lg.dir / 00001_Script_1 next >
Text File  |  1999-02-02  |  5KB  |  215 lines

  1.  
  2. on startMovie
  3.   
  4.   
  5.   global HYPER,REQUIREMENTS
  6.   
  7.   set REQUIREMENTS to the memberNum of member "REQUIRETEXT"
  8.   set HYPER to the memberNum of member "HYPERTEXT"
  9.   
  10.   global  LINECLICK,LASTCLICK
  11.   set LASTCLICK to 1
  12.   set LINECLICK to 1
  13.   set the forecolor of member "progDisplay" to 255 -- set text to black
  14.   set the forecolor of line LINECLICK of member "progDisplay" to 0
  15.   setpath()
  16.   
  17.   
  18.   --* keeps the escape key from exiting the program 
  19.   
  20.   set the exitLock = TRUE
  21.   set the keyDownScript = "NoEscape"  
  22.   
  23.   
  24.   
  25.   --* This declares the variables for the finger cursor. *
  26.   
  27.   global FINGER, FINGERMASK,MAGNIFY, MAGNIFY2, MAGNIFYMASK
  28.   set FINGER to the memberNum of member "Finger1"
  29.   set FINGERMASK to the memberNum of member "Finger2"
  30.   set MAGNIFY to the memberNum of member "MAGGLASS"
  31.   set MAGNIFY2 to the memberNum of member "MAGGLASS2"
  32.   set MAGNIFYMASK to the memberNum of member "MAGGLASS1"
  33.   glowClear()
  34.   
  35. end
  36.  
  37.  
  38.  
  39. --* beep if the user tries quit using the escape key (53)
  40. on NoEscape
  41.   if the keyCode = 53 then beep
  42. end
  43.  
  44.  
  45.  
  46.  
  47.  
  48. --* This handler hides/shows the glow images. eg: glow(5,TRUE) *
  49.  
  50. on glow WHICHSPRITE, TRUEORFALSE
  51.   set the visible of sprite WHICHSPRITE to TRUEORFALSE
  52. end glow
  53.  
  54. --* TURN OF ALL GLOWS ON START
  55. on glowClear
  56.   repeat with i = 19 to 36
  57.     glow(i)
  58.   end repeat
  59. end
  60.  
  61. --* This handler switches the text color for a glow effect. eg.textglow("Hello",1)*
  62.  
  63. on textglow WHICHMEMBER, COLORNUMBER
  64.   set the foreColor of member WHICHMEMBER to COLORNUMBER  
  65. end textglow
  66.  
  67.  
  68. --* THIS HANDLER EXAMPLE OF DISABLEING HOTSPOTS WHEN RUNNING MIAW*
  69. --on mouseEnter
  70. --  if not count(the windowList) then
  71. --    doRollover(52)
  72. --  end if
  73. --end
  74. --
  75. --
  76. --on mouseLeave
  77. --  if not count(the windowList) then
  78. --    doRollout(52)
  79. --  end if
  80. --end
  81.  
  82.  
  83.  
  84. --* THIS HANDLER OPEN AND CENTERS A MOVIE IN A WINDOW *
  85.  
  86. on openMIAW MYWINDOW
  87.   set myRect=the rect of window MYWINDOW
  88.   set myStage=the rect of the Stage
  89.   set myWidth=(getAt(myRect,3)-getAt(myRect,1))
  90.   set myHeight=(getAt(myRect,4)-getAt(myRect,2))
  91.   set myLocH=((getAt(myStage,3)+getAt(myStage,1))/2)-(myWidth/2)
  92.   set myLocV=((getAt(myStage,2)+getAt(myStage,4))/2)-(myHeight/2)
  93.   set myNewRect=rect(myLocH,myLocV,(myLocH+myWidth),(myLocV+myHeight))
  94.   set the rect of window MYWINDOW=myNewRect
  95.   set the windowType of window MYWINDOW to 2
  96.   open window MYWINDOW
  97. end openMIAW
  98.  
  99.  
  100. --* THESE HANDLERS TURN ON A GLOW, TURN POINTER A HAND AND PLAYS A SOUND *
  101.  
  102. on doRollover NUMSPRITE,NUMSOUND
  103.   glow(numsprite,TRUE)
  104.   --  global finger,fingermask
  105.   --  cursor[finger,fingermask]  
  106.   case  NUMSOUND of      
  107.     1: puppetsound 1, "Scissors"
  108.     2: puppetsound 1, "Butane"
  109.     3: puppetsound 1, "Scissors"
  110.     4: puppetsound 1, "Scissors"
  111.   end case 
  112.   updatestage
  113. end
  114.  
  115.  
  116. -- set which cursor to use
  117.  
  118. on mycursor WHICHCURSOR
  119.   
  120.   global finger,fingermask,MAGNIFY,MAGNIFY2,MAGNIFYMASK
  121.   
  122.   case  WHICHCURSOR of      
  123.     1: cursor[finger,fingermask]  
  124.     2: cursor [MAGNIFY,MAGNIFYMASK]
  125.     3: cursor [MAGNIFY2,MAGNIFYMASK]      
  126.   end case 
  127.   updatestage
  128.   
  129. end
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. --* THIS HANDLER TURNS THE SPRITE PASSED TO IT TO INVISIBLE AND RESETS THE CURSOR
  137. on doRollout numsprite
  138.   glow(numsprite,FALSE)
  139.   cursor 0
  140. end
  141.  
  142. --* PLAYS A CLICK SOUND
  143.  
  144. on doClick
  145.   puppetsound 1,"close"
  146.   updateStage
  147. end
  148.  
  149.  
  150. on doZoomout numsprite,soundwait
  151.   puppetsound 1, "close"  
  152.   if soundwait then
  153.     repeat while soundbusy (1)
  154.     end repeat
  155.     set soundwait to FALSE
  156.   end if
  157.   glow(numsprite, TRUE)
  158.   global MAGNIFY2, MAGNIFYMASK
  159.   cursor [MAGNIFY2,MAGNIFYMASK]
  160.   updatestage
  161. end
  162.  
  163. on doZoomin numsprite,soundwait
  164.   puppetsound 1, "close"  
  165.   if soundwait then
  166.     repeat while soundbusy (1)
  167.     end repeat
  168.     set soundwait to FALSE
  169.   end if
  170.   glow(numsprite, TRUE)
  171.   global MAGNIFY, MAGNIFYMASK
  172.   cursor [MAGNIFY,MAGNIFYMASK]
  173.   updatestage
  174. end
  175.  
  176.  
  177. on setpath
  178.   Global SETUPPATH95,LINECLICK
  179.   
  180.   case LINECLICK of
  181.       
  182.     1:set SETUPPATH95 to line 1 of Field "SETUPS"       
  183.     2:set SETUPPATH95 to line 2 of Field "SETUPS"      
  184.     3:set SETUPPATH95 to line 3 of Field "SETUPS"      
  185.     4:set SETUPPATH95 to line 4 of Field "SETUPS"      
  186.     5:set SETUPPATH95 to line 5 of Field "SETUPS"      
  187.     6:set SETUPPATH95 to line 6 of Field "SETUPS"
  188.     7:set SETUPPATH95 to line 7 of Field "SETUPS"
  189.     8:set SETUPPATH95 to line 8 of Field "SETUPS"
  190.     9:set SETUPPATH95 to line 9 of Field "SETUPS"
  191.     10:set SETUPPATH95 to line 10 of Field "SETUPS"
  192.     11:set SETUPPATH95 to line 11 of Field "SETUPS"
  193.     12:set SETUPPATH95 to line 12 of Field "SETUPS"
  194.     13:set SETUPPATH95 to line 13 of Field "SETUPS"
  195.     14:set SETUPPATH95 to line 14 of Field "SETUPS"
  196.     15:set SETUPPATH95 to line 15 of Field "SETUPS"
  197.     16:set SETUPPATH95 to line 16 of Field "SETUPS"
  198.     17:set SETUPPATH95 to line 17 of Field "SETUPS"
  199.     18:set SETUPPATH95 to line 18 of Field "SETUPS"
  200.     19:set SETUPPATH95 to line 19 of Field "SETUPS"
  201.     20:set SETUPPATH95 to line 20 of Field "SETUPS"
  202.       
  203.       
  204.   end case
  205.   
  206. end
  207.  
  208.  
  209. -- Delays for x number of seconds
  210. on timedelay SECONDS 
  211.   startTimer
  212.   repeat while the timer < SECONDS * 60
  213.     nothing
  214.   end repeat    
  215. end